|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.desktop.projects.core.internals.VoiceResource
org.eclipse.vtp.desktop.projects.core.internals.BusinessObject
public class BusinessObject
This is a concrete implementation of IBusinessObject and
provides the default behavior of that interface.
| Constructor Summary | |
|---|---|
BusinessObject(BusinessObjectSet objectSet,
org.eclipse.core.resources.IFile file)
Creates a new BusinessObject with the given parent
business object set and eclipse file resource. |
|
| Method Summary | |
|---|---|
void |
delete()
|
IBusinessObjectSet |
getBusinessObjectSet()
|
java.util.List |
getFields()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
protected java.lang.String |
getObjectId()
The object id is used by the event system to uniquely identify a project resource. |
IVoiceToolsResource |
getParent()
Returns the parent of this resource. |
org.eclipse.core.resources.IFile |
getUnderlyingFile()
|
void |
processObjectEvent(ObjectEvent event)
Called when an event is generated by the object being listened to. |
java.io.InputStream |
read()
Opens the underlying eclipse file resource that contains the XML format definition of this business object. |
void |
write(java.io.InputStream source)
Requests the contents of the XML format definition of this business object definition be replaced with the data from the given input stream. |
| Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource |
|---|
addRefreshListener, deferEvents, finalize, getAdapter, getProject, refresh, removeRefreshListener, resumeEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource |
|---|
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
|---|
public BusinessObject(BusinessObjectSet objectSet,
org.eclipse.core.resources.IFile file)
BusinessObject with the given parent
business object set and eclipse file resource.
objectSet - The parent business object setfile - The eclipse file resource that contains this business object
type's definition| Method Detail |
|---|
protected java.lang.String getObjectId()
VoiceResource
getObjectId in class VoiceResourcepublic java.lang.String getId()
getId in interface IBusinessObjectpublic java.lang.String getName()
getName in interface IVoiceToolsResourcepublic java.util.List getFields()
getFields in interface IBusinessObjectIBusinessObjectFields that define the
names and data types of the business object's fieldspublic IVoiceToolsResource getParent()
IVoiceToolsResourcethis.
getParent in interface IVoiceToolsResource
public java.io.InputStream read()
throws org.eclipse.core.runtime.CoreException
InputStream.
org.eclipse.core.runtime.CoreException - If an error occured while opening the
file resourcepublic void processObjectEvent(ObjectEvent event)
ObjectListener
processObjectEvent in interface ObjectListenerprocessObjectEvent in class VoiceResourceevent - The event that occured
public void write(java.io.InputStream source)
throws org.eclipse.core.runtime.CoreException
source - An input stream to the new file contents
org.eclipse.core.runtime.CoreException - If an error occured while writing the
new contents of the filepublic IBusinessObjectSet getBusinessObjectSet()
getBusinessObjectSet in interface IBusinessObject
public void delete()
throws org.eclipse.core.runtime.CoreException
delete in interface IBusinessObjectorg.eclipse.core.runtime.CoreExceptionpublic org.eclipse.core.resources.IFile getUnderlyingFile()
getUnderlyingFile in interface IBusinessObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||